# src/__init__.py
from src.core import global_data, load_config, Config, str_utils
from src.core.logging_utils import logger_cust
from src.schemas.login_manager import LoginManager
from src.schemas import login_manager
from src.core import dependencies, security, crypt_utils,  retMes, orm_curd, sys_mangers as SysMangers
from src.core.ormdb import engine, SessionLocal, Base, get_db
from src.core import  db_utils as DB
from src.models.sys_user import SysUser
from src.router.sys_manges import router as sysMangesRouter
from src.router.sys_dicts import router as sysDictsRouter
from src.router.sys_objects import router as sysObjectsRouter

# -------------------- 核心工具 --------------------
_core_utils = [
    'load_config',
    'Config',
    'str_utils',
    'logger_cust',
    'global_data',
    'crypt_utils',
    'retMes'
]

# -------------------- 数据库 --------------------
_db = [
    'engine',
    'SessionLocal',
    'Base',
    'get_db',
    'orm_curd',
    'DB'
]

# -------------------- 权限 & 登录 --------------------
_auth = [
    'LoginManager',
    'login_manager'
]

# -------------------- 模型 --------------------
_models = [
    'SysUser'
]

# -------------------- 路由 --------------------
_routers = [
    'sysMangesRouter',
    'sysDictsRouter',
    'sysObjectsRouter'
]

# -------------------- 系统管理与安全 --------------------
_sys = [
    'dependencies',
    'security',
    'SysMangers'  # 系统初始化
]

# ==================== 最终导出 ====================
__all__ = _core_utils + _db + _auth + _models + _routers + _sys
"""


__all__ = ['load_config',
           'Config',
           'str_utils',
           'logger_cust',
           'global_data',
           'LoginManager',
           'dependencies',
           'login_manager',
           'retMes',
           'security',
           'crypt_utils',
           'engine',
           'SessionLocal',
           'Base',
           'db_utils',
           'SysUser',
           'sysMangesRouter',
           'get_db',
           'SysMangers',
           'sysDictsRouter',
           'orm_curd'
           ]
"""
# 初始化代码
